package pattern.command;

public class Init
{
	public static void main(String[] args)
	{
		Invoker invoker = new Invoker();
		Receiver receiver = new Receiver();
		Command concreteCommand = new ConcreteCommand(receiver);
		Command concreteCommandTwo = new ConcreteCommand(receiver);
		invoker.setCommand(concreteCommand);
		invoker.trigger();
		invoker.setCommand(concreteCommandTwo);
		invoker.trigger();
	}
}
